<%@page import="java.util.Set"%>
<%@page import="java.util.Map"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<h2>购物车详情</h2>

<table>
	<tr>
		<th>
		商品名称
		</th>
		<th>
		商品数量
		</th>
	</tr>
	
	<%
	Map<String,Integer>cart = (Map<String,Integer>)(session.getAttribute("product"));
	Set<String>keys = cart.keySet();
	
	boolean find = false;
	
	for(String key : keys){
		%>
		<tr>
			<td>
			<%=key %>
			</td>
			
			<td>
			<%=cart.get(key) %>
			</td>
		</tr>
		<%
	}
	%>
</table>

<a href="#">去支付</a>
</body>
</html>